{extend name="base" /}
{block name="css"}
<style>
body{padding:0px;background:#EAEEF5;overflow:hidden;}
</style>
{/block}
{block name="js"}
<script src="__INDEX__/js/index.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div id="topmenu" class="htr-topmenu">
    <div class="htr-topmenu-logo"><img height='70' src="__INDEX__/img/logo.png"/></div>
    <div class="htr-topmenu-welcome">
        {if $staffRoleId==1 || $staffRoleId==3}
        <a class="htr-top-link" style="background:url(/app/index/view/img/remind.png) no-repeat center center;background-size:18px;text-indent:90px;width:20px;overflow:hidden;float:left;position:relative;" href="javascript:void(0)" url="/index/salesremind/index.html" onclick="javascript:changeTab(this,1)">未消费提醒{if $checkRead!=2}<i style="position:absolute;width:4px;height:4px;background:#f00;top:4px;right:5px;border-radius:2px;"></i>{/if}</a>
        {/if}
        {if HTRGrant('HHQL_04')}
        <a href="#none" onclick='clearCache()' class="htr-top-link">清除缓存</a>
        <span class="htr-space">|</span>
        {/if}
        <a href="#none" onclick='editPassBox()' class="htr-top-link">修改密码</a>
        <span class="htr-space">|</span>
        <a href="javascript:logout()" class="htr-top-link">退出系统</a> 
    </div> 
</div>
<div id="htr-tabs" style="width:100%; height:100%;overflow: hidden; border: 1px solid #D3D3d3;" class="liger-tab">
   {volist name="menus" id="vo" key="k"}
   <div id="htr-tab-{$vo['menuId']}" tabId="htr-tab-{$vo['menuId']}" v="{$vo['menuId']}" title="{$vo['menuName']}" class='htr-tab' {if condition="$k ==0"}lselected="true"{/if} style="height: 300px"> 
   </div>
   {/volist}   
</div>
<div id='editPassBox' style='display:none;padding-top:5px;'>
  <form id='editPassFrom' autocomplete="off">
   <table class='htr-form'>
      <tr>
         <th style='width:100px'>原密码：</th>
         <td><input type='password' id='srcPass' name='srcPass' class='ipt' data-rule="原密码: required;" maxLength='16'/></td>
      </tr>
      <tr>
         <th>新密码：</th>
         <td><input type='password' id='newPass' name='newPass' class='ipt' data-rule="新密码: required;length[6~]" maxLength='16'/></td>
      </tr>
      <tr>
         <th>确认密码：</th>
         <td><input type='password' id='newPass2' name='newPass2' class='ipt' data-rule="确认密码: required;match(newPass);" maxLength='16'/></td>
      </tr>
   </table>
  </form>
</div>
{/block}
